package com.ph.website.home.param;

import lombok.Data;

import javax.validation.constraints.NotNull;

public class NewsParam {

    @Data
    public static class ListParam{
        @NotNull
        private Integer start;
        @NotNull
        private Integer num;
        private String title;
        private Integer newsState;
        private Integer newsType;
    }

    @Data
    public static class VerifyParam{
        @NotNull
        private Integer newsId;
    }

    @Data
    public static class DeleteParam {
        @NotNull
        private Integer newsId;
    }

    @Data
    public static class PublishParam {
        @NotNull
        private Integer newsId;
    }

    @Data
    public static class RejectParam {
        @NotNull
        private Integer newsId;
    }

    @Data
    public static class UnPublishParam {
        @NotNull
        private Integer newsId;
    }

    @Data
    public static class AddParam {
        @NotNull
        private String title;
        @NotNull
        private String origin;
        @NotNull
        private Integer newsType;
        @NotNull
        private String content;
        private String publishTime;
    }

    @Data
    public static class ModifyParam{
        @NotNull
        private Integer newsId;
        @NotNull
        private String title;
        @NotNull
        private String origin;
        @NotNull
        private Integer newsType;
        @NotNull
        private String content;
        private String publishTime;
    }

    @Data
    public static class GetParam {
        @NotNull
        private Integer newsId;
    }
}
